﻿using System;

namespace Dyao.Book.Contract
{
    /// <summary>
    /// 选项标记
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum)]
    public class SelectItemsAttribute : Attribute
    {
        /// <summary>
        /// 选项标记特性
        /// </summary>
        /// <param name="key"></param>
        public SelectItemsAttribute(string key = "")
        {
            Key = key;
        }

        /// <summary>
        /// 选项key
        /// </summary>
        public string Key { get; set; }
    }
}
